package com.qingcloud.base.api.remote.eqcenter.fallback;

import com.qingcloud.base.api.remote.eqcenter.EqcenterApi;
import com.qingcloud.base.pojo.ApiResult;
import com.qingcloud.base.remote.eqcentor.CommandInfo;
import lombok.Setter;

public class EqcenterApiFallback implements EqcenterApi {

    @Setter
    private Throwable cause;

    @Override
    public ApiResult sendCommand(CommandInfo commandInfo) {
        return ApiResult.fail("服务异常，断路器默认响应");
    }

    @Override
    public ApiResult decodeMessage(String equipmentId, Integer componentId) {
        return ApiResult.fail("服务异常，断路器默认响应");
    }

}
